#include<iostream>
#include<signal.h>
#include<unistd.h>
#include<stdlib.h>
using namespace std;
void hander(int sig)
{
    cout << "abort!" << endl;
}
int main()
{
    signal(6, hander);
    while(1)
    {
        cout << "syx 666" << endl;
        sleep(1);
        abort();
    }
    return 0;
}